<?php

require_once ('include/permiss.php');
require_once('config.php');
if (isset($_GET['action']) == 'edit') {
    $order_id = $_GET['order_id'];
    $pdo = $conn->prepare('UPDATE datab_order SET order_status=? WHERE order_id=?');
    $pdo->execute(array($_GET['status'], $order_id));
    $kq = 0;
    if ($pdo->rowCount()) {
        $kq = 1;
    }

    header('Location: controlpanel.php?token=' . $_GET['token']);
}
?>
